package com.imooc.o2o.dao;

import com.imooc.o2o.entity.UserShopMap;

import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface UserShopMapDao {

    List<UserShopMap> queryUserShopMapList(@Param("userShopCondition") UserShopMap userShopMap,
                                           @Param("rowIndex") int rowIndex,
                                           @Param("pageSize") int pageSize);

    int queryUserShopMapCount(@Param("userShopCondition") UserShopMap userShopMap);

    UserShopMap queryUserShopMap(@Param("userId") long userId, @Param("shopId") long shopId);

    int insertUserShopMap(UserShopMap userShopMap);

    int updateUserMapPoint(UserShopMap userShopMap);

}
